<template>
	<view class="content">
		<u-datetime-picker
			:show="showStart"
			v-model="timeStamp"
			closeOnClickOverlay
			mode="date"
			@confirm="confirmStart"
			@cancel="showStart = false"
			@close="showStart = false"
		></u-datetime-picker>
		<mescroll-uni ref="mescrollRef" @init="mescrollInit" @up="upCallback" :up="upOption" :down="{ use: false }">
			<view class="section">
				<view class="section-bdoy">
					<view class="tab">
						<view
							@click="setCurIdx(idx, item.type)"
							:class="`item ${curIdx === idx ? 'item__active' : ''} ${curIdx + 1 === idx ? 'item__active_next' : ''}`"
							v-for="(item, idx) in tabList"
							:key="item.type"
						>
							<view class="label">{{ item.name }}</view>
							<view class="shape">
								<view class="shape-body"></view>
							</view>
							<view class="shape shape-mirrow">
								<view class="shape-body"></view>
							</view>
						</view>
					</view>
				</view>
			</view>

			<view class="section-0" v-show="curType == 1">
				<view class="section-body">
					<view :class="`item ${curBoard === item.state ? 'item__on' : ''}`" @click="setCurBoard(item)" v-for="item in board" :key="item.name">
						<view class="shape" v-if="item.right"></view>
						<view class="shape2" v-if="item.bottom"></view>
						<view class="top">{{ item.name }}</view>
						<view class="bottom">{{ analysis[item.type] || item.count }}</view>
					</view>
				</view>
			</view>

			<view class="section-0" v-show="curType == 2">
				<view class="section-body">
					<view :class="`item ${curBoard === item.state ? 'item__on' : ''}`" @click="setCurBoard(item)" v-for="item in board1" :key="item.name">
						<view class="shape" v-if="item.right"></view>
						<view class="shape2" v-if="item.bottom"></view>
						<view class="top">{{ item.name }}</view>
						<view class="bottom">{{ analysis[item.type] || item.count }}</view>
					</view>
				</view>
			</view>
			<view class="section-0" v-show="curType == 3">
				<view class="section-body">
					<view :class="`item ${curBoard === item.state ? 'item__on' : ''}`" @click="setCurBoard(item)" v-for="item in board2" :key="item.name">
						<view class="shape" v-if="item.right"></view>
						<view class="shape2" v-if="item.bottom"></view>
						<view class="top">{{ item.name }}</view>
						<view class="bottom">{{ analysis[item.type] || item.count }}</view>
					</view>
				</view>
			</view>
			<view class="section-0" v-show="curType == 4">
				<view class="section-body">
					<view :class="`item ${curBoard === item.state ? 'item__on' : ''}`" @click="setCurBoard(item)" v-for="item in board3" :key="item.name">
						<view class="shape" v-if="item.right"></view>
						<view class="shape2" v-if="item.bottom"></view>
						<view class="top">{{ item.name }}</view>
						<view class="bottom">{{ analysis[item.type] || item.count }}</view>
					</view>
				</view>
			</view>

			<view class="section-1">
				<view class="form">
					<view class="form-item">
						<view class="label">项目名称</view>
						<view class="shape"></view>
						<view class="input">
							<u--input placeholderClass="input-placeholder" class="input-body" v-model="form.project_name"></u--input>
						</view>
					</view>
					<formArea v-model="city" :value="form.city" :labelWidth="134" @onChange="e => (form.city = e)"></formArea>
					<view class="form-item" v-if="form.type == 1">
						<view class="label">时间</view>
						<view class="shape"></view>
						<view class="input">
							<div class="time-body" @click="showDate('start_time')">{{ form.start_time }}</div>
							<div class="time-split">-</div>
							<div class="time-body" @click="showDate('end_time')">{{ form.end_time }}</div>
						</view>
					</view>
					<view class="actions">
						<view class="action" @click="handleResetForm()">
							<text>重</text>
							<text>置</text>
						</view>
						<view class="action search" @click="handleSearch()">
							<text>查</text>
							<text>询</text>
						</view>
					</view>
				</view>
				<view class="list">
					<view :class="`item ${expandList.indexOf(item.id) !== -1 ? 'item__expand' : ''}`" v-for="(item, index) in list" :key="item.id">
						<view class="parent" @click="expandChange(item.id, item.id, 2, index)">
							<view class="action">
								<view class="iconfont icon-xiangyou1"></view>
							</view>
							<view class="name">{{ index + 1 }}.{{ item.project_name }}</view>
							<view class="count" v-if="!showState">
								{{ item.total }}
								<text>个</text>
							</view>
							<view  v-if="showState">
								<!-- <image
								  src="../../../../static/weixian.png"
								  mode="aspectFit"
								  style="width: 15px; height: 15px;margin-left: 40px;margin-top: 15px; "
								></image> -->
							</view>
							
						</view>
						<view class="child" v-if="expandList.indexOf(item.id) !== -1">
							<view class="child-item" v-for="(item2, idx) in item.children" :key="item2.project_id + idx">
								<view class="top" @click="expandChange(`${index}-${idx}`, item2.project_id, 3)">
									<view :class="`action ${expandList.indexOf(`${index}-${idx}`) !== -1 ? 'action__active' : ''}`">
										<view class="iconfont icon-xiangyou1"></view>
									</view>
									<view class="name">{{ index + 1 }}-{{ idx + 1 }}.{{ item2.project_name }}</view>
									<view class="count" v-if="!showState">
										{{ item2.total }}
										<text>个</text>
									</view>
									<!-- 	<image
										v-if="showState"
										  src="../../../../static/weixian.png"
										  mode="aspectFit"
										  style="width: 15px; height: 15px;margin-left: 27px;margin-top: 15px; "
										></image> -->
								</view>
								<view class="grad" v-if="expandList.indexOf(`${index}-${idx}`) !== -1">
									<view class="grad-item" v-if="!showState" @click="go(item3)" v-for="(item3, idx3) in item2.children" :key="item3.id">
										<view class="grad-top">
											<view class="name">{{ index + 1 }}-{{ idx + 1 }}-{{ idx3 + 1 }}.{{ item3.work_type }}</view>
											<view class="desc">
												<text>{{ item3.work_position }}</text>
												等级：{{ item3.risk_level }}
											</view>
										</view>
									</view>
									<view class="grad-item" v-show="item2.children.length < 1">
										<view class="grad-top">
											<view class="namesage">
												<view class="name-none">无履职人员</view>
											</view>
										</view>
									</view>
									<view class="grad-item" v-show="item2.children.length >= 1" v-if="showState" v-for="(item3, idx3) in item2.children" :key="item3.id">
										<view class="grad-top">
											<view class="namesage">
												<view class="name-text">
													<text>姓名：</text>
													{{ item3.user_name }}
												</view>
												<view class="">
													<text>履职时间：</text>
													{{ item3.dk_time_in.substring(0, 10) }}
												</view>
											</view>
											<view class="name-sage">
												<text>地点：</text>
												{{ item3.dk_address }}
											</view>
										</view>
									</view>
									
								</view>
							</view>
						</view>
					</view>
				</view>
				<!-- <view v-else class="custom-empty">
					<text class="iconfont icon-zanwushuju"></text>
					<view class="empty-title">暂无数据</view>
				</view> -->
			</view>
		</mescroll-uni>
	</view>
</template>

<script>
import { projectRiskAnalysisApi, projectRiskApi, projectRiskByProjectIdApi, riskListApi } from '@/api/statistics.js'
import { mapGetters, mapActions } from 'vuex'
import formArea from '@/components/form_area/index.vue'
export default {
	components: { formArea },
	data() {
		return {
			form: {
				project_name: '',
				type: '1',
				city: '',
				start_time: '',
				end_time: ''
			},
			city: '',
			name: '',
			board: [
				{ name: '风险总数', count: 0, right: true, bottom: false, type: 'risk_num', state: 1 },
				{ name: '二级风险', count: 0, right: true, bottom: false, type: 'risk_num_2', state: 2 },
				{ name: '三级风险', count: 0, bottom: false, type: 'risk_num_3', state: 3 }
				// { name: '作业票', count: 0, right: true, type: 'work_count' },
				// { name: '二级到岗率', count: '/', right: true, type: 'risk_ratio_22' },
				// { name: '三级到岗率', count: 0, type: 'risk_ratio_3' },
			],
			board1: [
				{ name: '当日风险总数', count: 0, right: true, bottom: false, type: 'risk_num', state: 1, idsx: 1 },
				{ name: '当日二级风险', count: 0, right: true, bottom: false, type: 'risk_num_2', state: 2, idsx: 2 },
				{ name: '当日三级风险', count: 0, bottom: false, type: 'risk_num_3', state: 3, idsx: 3 },
				// { name: '作业票', count: 0, right: true, type: 'work_count' },
				// { name: '二级到岗率', count: 0, right: true, bottom: false, type: 'risk_ratio_2', state: 4 },
				// { name: '三级到岗率', count: 0, right: true, bottom: false, type: 'risk_ratio_3', state: 5 }
				// { name: '二级到岗率', count: '/', right: true, type: 'risk_ratio_22' },
				// { name: '三级到岗率', count: 0, type: 'risk_ratio_3' },
			],
			board2: [
				{ name: '本周风险总数', count: 0, right: true, bottom: false, type: 'risk_num', state: 1 },
				{ name: '本周二级风险', count: 0, right: true, bottom: false, type: 'risk_num_2', state: 2 },
				{ name: '本周三级风险', count: 0, bottom: false, type: 'risk_num_3', state: 3 }
				// { name: '作业票', count: 0, right: true, type: 'work_count' },
				// { name: '二级到岗率', count: '/', right: true, type: 'risk_ratio_22' },
				// { name: '三级到岗率', count: 0, type: 'risk_ratio_3' },
			],
			board3: [
				{ name: '下周风险总数', count: 0, right: true, bottom: false, type: 'risk_num', state: 1 },
				{ name: '下周二级风险', count: 0, right: true, bottom: false, type: 'risk_num_2', state: 2 },
				{ name: '下周三级风险', count: 0, bottom: false, type: 'risk_num_3', state: 3 }
				// { name: '作业票', count: 0, right: true, type: 'work_count' },
				// { name: '二级到岗率', count: '/', right: true, type: 'risk_ratio_22' },
				// { name: '三级到岗率', count: 0, type: 'risk_ratio_3' },
			],
			list: {},
			expandList: [],
			analysis: {},
			mescroll: null, // mescroll实例对象 (此行可删,mixins已默认)
			upOption: {
				textNoMore: '-- 没有更多了 --'
			},
			pageSize: 20,
			showStart: false,
			showState: false,
			timeStamp: '',
			curBoard: 1,
			curd: 0,
			curIdx: 1,
			curType: 2,
			tabList: [
				{
					type: 1,
					name: '全部'
				},
				{
					type: 2,
					name: '当日'
				},
				{
					type: 3,
					name: '本周'
				},
				{
					type: 4,
					name: '下周'
				}
			]
		}
	},
	methods: {
		setCurIdx(idx, type) {
			this.curIdx = idx
			this.curType = type
			this.projectAnalysis()
			// this.handleResetForm();
		},
		setCurBoard(item) {
			if (!item.state) return
			this.curBoard = item.state
			this.mescroll.resetUpScroll()
			this.mescroll.scrollTo(0, 0)
		},
		showDate(type) {
			this.timeType = type
			this.showStart = true
		},
		closeDate(type) {
			this.timeType = ''
			this.showStart = false
		},
		formatDate(timeStamp) {
			const date = new Date(timeStamp) //时间戳为10位需*1000，时间戳为13位的话不需乘1000
			const Y = date.getFullYear() + '-'
			const M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-'
			const D = date.getDate() < 10 ? '0' + date.getDate() : date.getDate()
			const h = date.getHours() + ':'
			const m = date.getMinutes() + ':'
			const s = date.getSeconds()
			return Y + M + D
		},
		confirmStart(val) {
			const timeStamp = val.value
			this.form[this.timeType] = this.formatDate(timeStamp)
			this.closeDate()
		},
		async expandChange(id, project_id, deep, index) {
			const idx = this.expandList.indexOf(id)
			if (idx !== -1) {
				this.expandList.splice(idx, 1)
			} else {
				this.expandList.push(id)
			}

			if (project_id && deep === 2 && idx === -1) {
				if (!this.list[index].children) {
					this.fetchList(index, project_id)
				}
			}
			if (project_id && deep === 3) {
				if (!this.list[id.split('-')[0]].children[id.split('-')[1]].children) {
					this.fetchInfo(id, project_id)
				}
			}
		},
		async fetchInfo(id, project_id) {
			uni.showLoading({ title: '加载中...' })
			// this.form.type = this.curType
			// if (this.curBoard == 4 || this.curBoard == 5) {
			// 	this.showState = true
			// } else {
			// 	this.showState = false
			// }
			const { data } = await projectRiskByProjectIdApi({ id: project_id, type: this.form.type, state: this.curBoard })
			if (data.code === 1) {
				let dep = JSON.parse(JSON.stringify(this.list))
				dep[id.split('-')[0]].children[id.split('-')[1]].children = data.data
				this.list = dep
			}
			uni.hideLoading()
		},
		async fetchList(idx, project_id) {
			let name=this.form.project_name
			uni.showLoading({ title: '加载中...' })
			// this.form.type = this.curType
			const { data } = await riskListApi({ project_id, type: this.form.type, state: this.curBoard,project_name:name })
			if (data.code === 1) {
				let dep = JSON.parse(JSON.stringify(this.list))
				dep[idx].children = data.data
				this.list = dep
			}
			uni.hideLoading()
		},
		go(params) {
			// params["type"] = 0;
			// console.log("str:"+JSON.stringify(params))
			let obj = {
				id: params.id,
				project_name: params.project_name,
				curd: this.curd
			}
			uni.navigateTo({
				url: '/pages/statistics/today/risk/info/index?params=' + JSON.stringify(obj)
			})
		},
		async projectAnalysis() {
			uni.showLoading({ title: '加载中...' })
			this.form.type = this.curType
			const { data } = await projectRiskAnalysisApi({
				type: this.form.type,
				start_time: this.form.start_time,
				end_time: this.form.end_time
			})
			// console.log('666666',data)
			uni.hideLoading()
			if (data.code === 1) {
				this.projectRiskApi()
				this.analysis = data.data
			}
		},
		async projectRiskApi() {
			let obj = {
				...this.form
			}
			if (this.curBoard !== 0) {
				obj.state = this.curBoard
			}
			const { data } = await projectRiskApi({
				...obj
				// page: page.num,
				// pageSize: this.pageSize,
			})
			console.log(data,'1111')
			if (data.code == 1) {
				this.list = data.data.data
			}
		},
		/*mescroll组件初始化的回调,可获取到mescroll对象 (此处可删,mixins已默认)*/
		mescrollInit(mescroll) {
			this.mescroll = mescroll
		},
		/*上拉加载的回调*/
		async upCallback(page) {
			let obj = {
				...this.form
			}
			if (this.curBoard !== 0) {
				obj.state = this.curBoard
			}
			// if(obj.state==4||obj.state==5){
			// 	const {data} =  await projectRiskApi({
			// 		city:obj.city,
			// 		end_time:obj.end_time,
			// 		project_name:obj.project_name,
			// 		start_time:obj.start_time,
			// 		state:1,
			// 		type:obj.type,
			// 		page: page.num,
			// 		pageSize: this.pageSize,
			// 	});
			// 	if (data.code === 1 || data.code === 200) {
			// 		let arr = [];
			// 		for (let key in data.data.data) {
			// 			arr.push(data.data.data[key]);
			// 		}
			// 		// 接口返回的当前页数据列表 (数组)
			// 		let curPageData = arr;
			// 		// 接口返回的当前页数据长度 (如列表有26个数据,当前页返回8个,则curPageLen=8)
			// 		let curPageLen = curPageData.length;
			// 		// 接口返回的总页数 (如列表有26个数据,每页10条,共3页; 则totalPage=3)
			// 		let totalPage = data.data.data.last_page;
			// 		//设置列表数据
			// 		if(page.num == 1) this.list = []; //如果是第一页需手动置空列表
			// 		this.list = this.list.concat(curPageData); //追加新数据
			// 		// 请求成功,隐藏加载状态
			// 		this.mescroll.endByPage(curPageLen, totalPage);
			// 		setTimeout(()=>{
			// 			this.mescroll.endSuccess(curPageLen);
			// 		},20);
			// 	} else{
			// 		//  请求失败,隐藏加载状态
			// 		this.mescroll.endErr()
			// 	}
			// }else{
			if (obj.state == 4 || obj.state == 5) {
				this.showState = true
			} else {
				this.showState = false
			}
			const { data } = await projectRiskApi({
				...obj,
				page: page.num,
				pageSize: this.pageSize
			})
			if (data.code === 1 || data.code === 200) {
				let arr = []
				for (let key in data.data.data) {
					arr.push(data.data.data[key])
				}
				// 接口返回的当前页数据列表 (数组)
				let curPageData = arr
				// 接口返回的当前页数据长度 (如列表有26个数据,当前页返回8个,则curPageLen=8)
				let curPageLen = curPageData.length
				// 接口返回的总页数 (如列表有26个数据,每页10条,共3页; 则totalPage=3)
				let totalPage = data.data.data.last_page
				//设置列表数据
				if (page.num == 1) this.list = [] //如果是第一页需手动置空列表
				this.list = this.list.concat(curPageData) //追加新数据
				// 请求成功,隐藏加载状态
				this.mescroll.endByPage(curPageLen, totalPage)
				setTimeout(() => {
					this.mescroll.endSuccess(curPageLen)
				}, 20)
			} else {
				//  请求失败,隐藏加载状态
				this.mescroll.endErr()
			}
			// }
		},
		handleResetForm() {
			// for (let key in this.form) {
			// 	this.form[key] = '';
			// }
			this.form.project_name = ''
			this.form.city = ''
			this.form.start_time = ''
			this.form.end_time = ''
			this.city = ''
			this.mescroll.resetUpScroll()
			this.mescroll.scrollTo(0, 0)
		},
		handleSearch() {
			this.curBoard = this.curBoard
			if (this.form.city == '全部') {
				this.form.city = ''
				this.city = '全部'
			}
			this.projectAnalysis()
			this.mescroll.resetUpScroll()
			this.mescroll.scrollTo(0, 0)
			this.expandList = []
		}
	},
	onReady() {
		this.timeStamp = new Date().valueOf()
		this.projectAnalysis()
		// this.fetchData();
	},
	onLoad(data) {
		if (data.type == 1) {
			uni.setNavigationBarTitle({
				title: '风险统计表'
			})
		} else {
			uni.setNavigationBarTitle({
				title: '当日风险'
			})
		}
		this.form.type = data.type
		this.curd = data.curd ? data.curd : 0
	}
}
</script>

<style lang="scss" scoped>
.custom-empty {
	position: static;
}
.content {
	background-color: #fff;
}

.section {
	background-color: #2c5cff;

	.section-bdoy {
		border-top-left-radius: 50rpx;
		border-top-right-radius: 50rpx;
		background-color: #2c5cff;
		overflow: hidden;

		.tab {
			width: 100%;
			height: 100rpx;
			@include clear();
			background-color: #10298a;

			.item {
				width: 25%;
				float: left;
				height: 100rpx;
				background-color: #10298a;
				position: relative;

				.label {
					width: 100%;
					float: left;
					position: relative;
					z-index: 10;
					box-sizing: border-box;
					text-align: center;
					font-size: 26rpx;
					font-weight: normal;
					font-stretch: normal;
					letter-spacing: 0rpx;
					color: #87c6ff;
					line-height: 100rpx;
				}

				.time-picker {
					margin-top: 32rpx;
					float: left;
					display: inline-block;
					padding: 0 18rpx;
					height: 36rpx;
					border-radius: 17rpx;
					border: solid 1rpx #87c6ff;
					line-height: 36rpx;
					font-size: 26rpx;
					font-weight: normal;
					font-stretch: normal;
					letter-spacing: 0rpx;
					color: #87c6ff;
					margin-left: 20rpx;
				}

				.shape {
					z-index: 1;
					width: 50rpx;
					height: 50rpx;
					position: absolute;
					bottom: 0;
					left: -50rpx;
					background: #000;
					display: none;
					background-color: #1d33c6;
					overflow: hidden;

					.shape-body {
						width: 50rpx;
						height: 50rpx;
						background-color: #10298a;
						border-bottom-right-radius: 50rpx;
					}
				}

				.shape-mirrow {
					z-index: 1;
					left: 0;
					display: none;

					.shape-body {
						border-bottom-right-radius: 0rpx;
						border-bottom-left-radius: 50rpx;
					}
				}
			}

			.item__active {
				border-top-left-radius: 50rpx;
				border-top-right-radius: 50rpx;
				background-color: #1534ce;

				.label {
					color: #fff;
				}

				.shape {
					display: block;
				}

				.shape-mirrow {
					display: none;
				}
			}

			.item__active_next {
				border-bottom-right-radius: 50rpx;

				.shape {
					display: none;
				}

				.shape-mirrow {
					display: block;
				}
			}
		}

		.top-total {
			width: 100%;
			box-sizing: border-box;
			height: 88rpx;
			line-height: 88rpx;
			font-size: 26rpx;
			font-weight: normal;
			font-stretch: normal;
			letter-spacing: 0rpx;
			color: #87c6ff;
			background: #1534ce;
			padding-left: 40rpx;
			padding-right: 40rpx;

			text {
				font-weight: bold;
				font-size: 58rpx;
				font-weight: normal;
				font-stretch: normal;
				line-height: 49rpx;
				letter-spacing: 0rpx;
				color: #ffffff;
			}
		}
	}
}

.section-1 {
	position: relative;
	top: -50rpx;
	z-index: 10;
	background-color: #fff;
	border-top-left-radius: 50rpx;
	border-top-right-radius: 50rpx;
	.list {
		width: 670rpx;
		box-sizing: border-box;
		margin-left: 40rpx;
		border-top: 2rpx solid #d8e4f2;

		.item {
			width: 100%;
			border-bottom: solid 2rpx #f2f2f0;

			.parent {
				width: 100%;
				@include clear();
				.name {
					width: 550rpx;
					line-height: 30rpx;
					padding: 26rpx 0;
					font-size: 26rpx;
					font-weight: normal;
					font-stretch: normal;
					letter-spacing: 2rpx;
					color: #3b3c40;
					float: left;
				}

				.count {
					float: right;
					min-width: 46rpx;
					height: 46rpx;
					margin-top: 18rpx;
					border-radius: 28rpx;
					line-height: 46rpx;
					text-align: center;
					font-size: 26rpx;
					font-weight: bold;
					color: #395cf5;
					background: #ffde00;
					text {
						font-size: 16rpx;
					}
				}

				.action {
					float: left;
					width: 32rpx;
					margin-right: 18rpx;
					line-height: 82rpx;
					text-align: center;
					color: #3b3c40;

					.iconfont {
						font-size: 32rpx;
						transition: 0.2s ease;
						transform: rotate(90deg);
					}
				}
			}
			.child {
				width: 750rpx;
				margin-left: -40rpx;
				background: #f2f2fa;

				.child-item {
					width: 100%;
					border-bottom: 2rpx solid #e3e8f5;
					@include clear();
					&:last-child {
						border-bottom: none;
					}

					.top {
						width: 100%;
						overflow: hidden;
						box-sizing: border-box;
						padding-left: 40rpx;
						padding-right: 40rpx;

						.count {
							float: right;
							min-width: 46rpx;
							height: 46rpx;
							margin-top: 18rpx;
							border-radius: 28rpx;
							line-height: 46rpx;
							text-align: center;
							font-size: 26rpx;
							font-weight: bold;
							color: #395cf5;
							// background: #ffde00;
							text {
								font-size: 16rpx;
							}
						}

						.name {
							float: left;
							width: calc(100% - 150rpx);
							box-sizing: border-box;
							padding: 26rpx 0;
							font-size: 26rpx;
							color: #3b3c40;
							font-size: 26rpx;
						}

						.action {
							width: 32rpx;
							line-height: 82rpx;
							float: left;
							text-align: center;
							color: #7f98ae;
							margin-right: 18rpx;
							.iconfont {
								font-size: 32rpx;
								transition: 0.2s ease;
								transform: rotate(90deg);
							}
						}
					}
				}
			}

			.grad {
				width: 100%;
				background: #d9d9e2;
				.grad-item {
					width: 100%;
					border-bottom: 2rpx solid #e3e8f5;

					&:last-child {
						border-bottom: none;
					}

					.grad-top {
						width: 100%;
						overflow: hidden;
						box-sizing: border-box;
						padding-left: 40rpx;
						.name {
							float: left;
							width: calc(100% - 40rpx);
							padding: 26rpx 0;
							padding-bottom: 10rpx;
							font-size: 26rpx;
							color: #3b3c40;
							padding-left: 50rpx;
							box-sizing: border-box;
						}
						.namesage {
							display: flex;
							padding: 26rpx 0;
							padding-left: 50rpx;
							font-size: 26rpx;
							color: #9b9b9b;
							.name-text {
								margin-right: 100rpx;
							}
							.name-none {
								margin-left: 200rpx;
								text-align: center;
							}
						}
						.name-sage {
							padding-left: 50rpx;
							padding-bottom: 26rpx;
							font-size: 26rpx;
							color: #9b9b9b;
						}
						.desc {
							float: left;
							width: calc(100% - 40rpx);
							font-size: 16rpx;
							color: #9b9b9b;
							box-sizing: border-box;
							padding-left: 50rpx;
							padding-bottom: 26rpx;
							text {
								min-width: 300rpx;
								margin-right: 30rpx;
								display: inline-block;
							}
						}
					}
				}
			}
			.action__active {
				.iconfont {
					transform: rotate(-90deg) !important;
				}
			}
		}

		.item__expand {
			.parent {
				.action {
					.iconfont {
						transform: rotate(-90deg);
					}
				}
			}

			.child {
				box-shadow: 0rpx 10rpx 10rpx 0rpx rgba(0, 0, 0, 0.05) inset;
			}
		}
	}
	.actions {
		width: 100%;
		height: 50rpx;
		margin-top: 29rpx;
		padding-bottom: 40rpx;
		display: flex;
		justify-content: space-between;
		.action {
			width: 288rpx;
			height: 48rpx;
			background-color: #395cf5;
			border-radius: 20rpx;
			text-align: center;
			line-height: 48rpx;
			font-size: 26rpx;
			font-weight: normal;
			font-stretch: normal;
			line-height: 48rpx;
			color: #ffffff;
			text {
				&:first-child {
					margin-right: 20rpx;
				}
			}
		}
		.search {
			background-color: #1534ce;
		}
	}
	.form {
		width: 100%;
		padding: 0 75rpx;
		padding-top: 40rpx;
		box-sizing: border-box;
		.form-item {
			width: 600rpx;
			height: 48rpx;
			border-radius: 20rpx;
			border: solid 2rpx #1534ce;
			margin: 0 auto;
			margin-bottom: 34rpx;
			@include clear();
			.label {
				float: left;
				width: 134rpx;
				height: 48rpx;
				text-align: center;
				line-height: 44rpx;
				font-size: 26rpx;
				font-weight: normal;
				font-stretch: normal;
				letter-spacing: 0rpx;
				color: #1534ce;
			}
			.shape {
				width: 3rpx;
				height: 32rpx;
				background-color: #7f98ae;
				float: left;
				margin-top: 8rpx;
			}
			.input {
				height: 100%;
				float: left;
				width: calc(100% - 134rpx - 3rpx);
				.time-body {
					height: 48rpx;
					width: 45%;
					float: left;
					font-size: 26rpx;
					font-weight: normal;
					font-stretch: normal;
					letter-spacing: 0rpx;
					color: rgba(0, 0, 0, 0.7);
					text-align: center;
					line-height: 48rpx;
				}
				.time-split {
					float: left;
					width: 10%;
					text-align: center;
					color: #1534ce;
				}
				.input-body {
					box-sizing: border-box;
					width: 100%;
					height: 44rpx;
					padding: 0 !important;
					border: none;
					padding-left: 30rpx !important;
					padding-right: 30rpx !important;
					font-size: 26rpx;
					font-weight: normal;
					font-stretch: normal;
					letter-spacing: 0rpx;
					color: rgba(0, 0, 0, 0.7);
				}
				.input-placeholder {
					font-size: 26rpx;
					font-weight: normal;
					font-stretch: normal;
					letter-spacing: 0rpx;
					color: rgba(0, 0, 0, 0.5);
				}
			}
		}
	}
}
.section-0 {
	width: 100%;
	background-color: #2e5efe;
	.section-body {
		width: 100%;
		// height: 340rpx;
		padding-left: 40rpx;
		padding-right: 40rpx;
		padding-bottom: 50rpx;
		padding-top: 20rpx;
		background-color: #1534ce;
		background-size: cover;
		background-repeat: no-repeat;
		// border-top-left-radius: 50rpx;
		// border-top-right-radius: 50rpx;
		overflow: hidden;
		box-sizing: border-box;
		.item {
			width: 33.33%;
			float: left;
			display: flex;
			flex-wrap: wrap;
			align-content: space-between;
			height: 100rpx;
			position: relative;
			padding-top: 20rpx;
			padding-bottom: 20rpx;
			.shape {
				width: 4rpx;
				height: 84rpx;
				background-image: linear-gradient(rgba(#3658f2, 0.3) 0%, #3658f2 30%, #3658f2 70%, rgba(#3658f2, 0.3) 100%);
				position: absolute;
				right: 0;
				top: 28rpx;
			}
			.shape2 {
				height: 4rpx;
				width: 172rpx;
				background-image: linear-gradient(90deg, rgba(#3658f2, 0.3) 0%, #3658f2 30%, #3658f2 70%, rgba(#3658f2, 0.3) 100%);
				position: absolute;
				left: 0;
				right: 0;
				margin: 0 auto;
				bottom: -2rpx;
			}
			.top {
				width: 100%;
				text-align: center;
				font-size: 16rpx;
				font-weight: normal;
				font-stretch: normal;
				letter-spacing: 0rpx;
				color: #95c4fa;
			}
			.bottom {
				width: 100%;
				text-align: center;
				font-size: 58rpx;
				font-weight: bold;
				font-stretch: normal;
				letter-spacing: 0rpx;
				color: #ffde00;
			}
		}
		.item__on {
			.top {
				text-shadow: 8rpx 8rpx 8rpx rgba(0, 0, 0, 0.3);
			}
			.bottom {
				text-shadow: 8rpx 8rpx 8rpx rgba(0, 0, 0, 0.3);
			}
		}
	}
}
</style>
